import request from '@/utils/request'

// 查询车位管理列表
export function listManage_parking(query) {
  return request({
    url: '/manage/manage_parking/list',
    method: 'get',
    params: query
  })
}

// 查询车位管理详细
export function getManage_parking(parkingId) {
  return request({
    url: '/manage/manage_parking/' + parkingId,
    method: 'get'
  })
}

// 新增车位管理
export function addManage_parking(data) {
  return request({
    url: '/manage/manage_parking',
    method: 'post',
    data: data
  })
}

// 修改车位管理
export function updateManage_parking(data) {
  return request({
    url: '/manage/manage_parking',
    method: 'put',
    data: data
  })
}

// 删除车位管理
export function delManage_parking(parkingId) {
  return request({
    url: '/manage/manage_parking/' + parkingId,
    method: 'delete'
  })
}
